home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / zc / sttok.h < prev    next >
C/C++ Source or Header  |  1989-03-08  |  1KB  |  43 lines

  1. /* Copyright (c) 1988 by Sozobon, Limited.  Author: Johann Ruegg
  2.  *
  3.  * Permission is granted to anyone to use this software for any purpose
  4.  * on any computer system, and to redistribute it freely, with the
  5.  * following restrictions:
  6.  * 1) No charge may be made other than reasonable charges for reproduction.
  7.  * 2) Modified versions must be clearly marked as such.
  8.  * 3) The authors are not responsible for any harmful consequences
  9.  *    of using this software, even if they result from defects in it.
  10.  *
  11.  *    sttok.h
  12.  *
  13.  *    statement keyword tokens
  14.  */
  15.  
  16. #ifndef ENUMS
  17. #define K_GOTO        'a'
  18. #define K_RETURN    'b'
  19. #define K_BREAK        'c'
  20. #define K_CONTINUE    'd'
  21.  
  22. #define K_IF        'e'
  23. #define K_ELSE        'f'
  24. #define K_FOR        'g'
  25. #define K_DO        'h'
  26. #define K_WHILE        'i'
  27. #define K_SWITCH    'j'
  28.  
  29. #define K_CASE        'k'
  30. #define K_DEFAULT    'l'
  31. #define K_ASM        'm'
  32.  
  33. #define K_SIZEOF    'n'
  34.  
  35. #else
  36. enum {
  37.     K_GOTO = 'a', K_RETURN, K_BREAK, K_CONTINUE,
  38.     K_IF, K_ELSE, K_FOR, K_DO, K_WHILE, K_SWITCH,
  39.     K_CASE, K_DEFAULT, K_ASM,
  40.     K_SIZEOF,
  41. };
  42. #endif
  43.